<template>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="(item,index) in swiperList" :key="index">
        <img :src="item.imgUrl" alt="">
      </van-swipe-item>
    </van-swipe>
</template>

<script>
// 引入轮播图插件
export default {
    data(){
        return {
            swiperList:[
                {imgUrl:"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Flmg.jj20.com%2Fup%2Fallimg%2F1114%2F042421135351%2F210424135351-1-1200.jpg&refer=http%3A%2F%2Flmg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1668250910&t=5b9171536071afb7d9be1a7204dc5e8b"},
                {imgUrl:"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2Fd9%2F1b%2Fff%2Fd91bffc262277d733db18d951f1ff751.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1668251539&t=cd181ba6778cc9fccc5684b4aa750458"},
                {imgUrl:"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2F9e%2F66%2Fd7%2F9e66d7c49718339d16eb75e368a90fd4.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1668251631&t=3e406d517b318acf3e33a5857b1509a7"},
                {imgUrl:"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic%2Fcd%2F05%2Fdc%2Fcd05dc90a63739a47d7b301a02205b7e.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1668251994&t=34df12c642a817029c6e01cd7102002c"},
            ]
        }
    }

}
</script>

<style lang="scss" scoped>
  .my-swipe .van-swipe-item {
    color: #fff;
    font-size: .5333rem;
    line-height: 4rem;
    text-align: center;
    background-color: #39a9ed;
  }
  .van-swipe-item{
    width: 100%;
    height: 200px;
    img{
        width: 100%;
        height: 100%;
    }
  }

</style>